package com.miaoquan.mqportal.feign.hystrix;

import com.miaoquan.mqapitbk.domain.request.TklCreateRequest;
import com.miaoquan.mqcommon.api.CommonResult;
import com.miaoquan.mqcommon.exception.ApiException;
import com.miaoquan.mqportal.feign.TklFeign;
import org.springframework.stereotype.Component;

/**
 * 容错处理类，当调用失败时，简单返回空字符串 *
 *
 * @author Fa
 * @date 2020-04-03 22:45
 */
@Component
public class TklFeignFallback implements TklFeign {

    @Override
    public CommonResult<String> createTkl(TklCreateRequest tklCreateRequest) throws ApiException {
        throw new ApiException("调用mall-portal服务失败！");
    }

}

